from . import news_blue
from flask import render_template,current_app,session


@news_blue.route('/')
def index():
    session['name'] = 2018
    data=None
    return render_template('news/index.html',data=data)

@news_blue.route('/favicon.ico')
def favicon():
    # 使用current-app调用发送静态文件的方法，把项目logo文件发送给浏览器
    return current_app.send_static_file('news/favicon.ico')